package net.wicp.tams.commons.zookeeper;

import org.apache.zookeeper.KeeperException;

import net.wicp.tams.commons.Result;

/***
 * zookeeper的操作
 * 
 * @author zhoujunhui
 *
 */
public interface IZKOpt {
	/**
	 * Performs the operation - which may be involved multiple times if the
	 * connection to ZooKeeper closes during this operation
	 *
	 * @return the result of the operation or null
	 * @throws KeeperException
	 * @throws InterruptedException
	 */
	public Result execute() throws KeeperException, InterruptedException;
}
